<template>
  <n-layout style="width: 100%" position="absolute">
    <n-layout position="absolute" has-sider>
      <x-menu/>
      <n-layout-content>
        <div class="right-content">
          <router-view/>
        </div>
      </n-layout-content>
    </n-layout>
  </n-layout>
</template>

<script setup>
import {onBeforeMount} from 'vue'
import XMenu from "../components/x-menu.vue";
import {NLayout, NLayoutContent} from 'naive-ui'
import useAdminStore from "@/store/admin"

const adminStore = useAdminStore()

onBeforeMount(async () => {
  await adminStore.loadAdminInfo()
})
</script>

<style scoped>
.right-content {
  padding: 20px;
  //background-color:#edeff8;
}
</style>